package me.fung.rem.bean.repo

import me.fung.rem.bean.database
import org.ktorm.dsl.insert
import org.ktorm.ksp.api.PrimaryKey
import org.ktorm.ksp.api.Table

/**
 * 标签字典表，用于存储标签信息
 */
@Table
data class TagInfo (
    @PrimaryKey
    val id: Int = 0,
    var text: String = "",
)

fun TagInfo.add() {
    database.insert(TagInfoes) {
        set(it.text, text)
    }
}
